<?php include_once 'Pecahan/sessionLontong.php'; ?>
<?php
if (isset($_GET['name_viewed'])!= NULL) {
    $name_viewed = $_GET['name_viewed'];
}
else if (isset($_SESSION['user_name'])!= NULL) {
    $name_viewed = $_SESSION['user_name'];
}
if (isset($_SESSION['user_name'])!= NULL) {
    $name_logon = $_SESSION['user_name'];
    $temp = new login();
    $role = $temp->getRole($name_logon );
}
else {
    $name_logon = NULL;
    $role = NULL;
}
?>
<?php $judul = 'Upload Foto'; ?>
<?php include_once 'Pecahan/header.php'; ?>

<div id ="content" class="isipage">
    <div class="isipagekiri">
        <form action="<?php echo'foto_album.php?name_viewed='.$name_viewed?>" method="post" enctype="multipart/form-data">
            <label class="labelinput" id="file_label">File</label>
            <input class="input" type="file" name="fileFoto" id="fileFoto" onblur="cekFoto(this.value)"/>
            <div class="space"><div id="cek_foto" class="keterangan">
                    <br/>
                </div></div>
            <label class="labelinput" id="dekripsi_label">Description</label>
            <input class="input" type="text" name="dekripsi" id="dekripsi" onblur="cekDeskripsi(this.value)"/>
            <div class="space">
                <div id="cek_deskripsi" class="keterangan">
                    <br/>
                </div>
            </div>
            <label class="labelinput" id="kata_kunci_label">Keyword</label>
            <input class="input" type="text" name="kata_kunci" id="kata_kunci" onblur="cekKataKunci(this.value)"/>
            <div class="space">
                <div id="cek_kataKunci" class="keterangan">
                    <br/>
                </div>
            </div>
            <label class="labelinput" id="kategori_label">Category</label>
            <input class="input" type="text" name="kategori" id="kategori" onblur="cekKataKunci(this.value)"/>
            <div class="space">
                <div id="cek_kataKunci" class="keterangan">
                    <br/>
                </div>
            </div>
            <label class="labelinput" id="tanggal_label">Date</label>
            <input class="input" type="text" name="tanggal" id="tanggal"/>
            <div class="space"></div>
            <div>
                <label  class="labelinput" id="penglihat_label">Privacy</label>
                <select class="input" id="selectinput" name="penglihat">
                    <option value="all_user">All Users</option>
                    <option value="login_user">Only Logged In Users</option>
                    <option value="follower_user">Only Followers</option>
                    <option value="owner">Only owner</option>
                </select>
                <div class="space"></div>
            </div>
            <div>
                <label  class="labelinput" id="penglihat_label">Privacy Comment</label>
                <select class="input" id="selectinput" name="penglihatKom">
                    <option value="all_user">All Users</option>
                    <option value="owner">Only owner</option>
                </select>
                <div class="space"></div>
            </div>
            <div>
                <label id=""></label>
            </div>
            <button type="submit" id="submit_button" name="submit_button_upload">Upload</button>
        </form>
    </div>
</div>
<?php include_once 'Chat/chat.php';?>
<?php include_once 'Pecahan/footer.php'; ?>
